import Radio from 'components/Radio'
import { useState } from 'react'

export default function RadioDemo() {
  const [checked, setChecked] = useState(false)

  function changeHandler () {
    setChecked(!checked)
  }

  return (
    <div>
      <div>
        <Radio checked={checked} onChange={changeHandler}><span>Option B</span></Radio>
      </div>
      
      <Radio.group>
        <Radio value={1}>Opation A</Radio>
        <Radio value={2}>Opation B</Radio>
        <Radio value={3}>Opation C</Radio>
      </Radio.group>
    </div>
  )
}